<?php
namespace Admin\Controller;
class AddSortlistController extends BaseController {
    public function index(){
        $this->display();
    }
    public function addData(){
        $AddSortlist = M('cate');
        $data = I('post.');
        $rs = $AddSortlist->data($data)->add();
        if(!empty($rs)){
            $array = array('status'=>"1",'info'=>"添加成功",'url'=>U('Sortlist/index'));
        }else{
            $array = array('status'=>"0",'info'=>"添加失败",'url'=>U('Sortlist/index'));
        }
        $this->ajaxReturn($array);
    }
}